/**
 * 自动投标设置
 */
package com.p2p.front.service;

import com.p2p.base.model.Money;
import com.p2p.front.dal.model.LoanInfo;
import com.p2p.front.dal.model.TenderAutoSetting;

/**
 * @author ruiqi
 *
 */
public interface TenderAutoService {

	public void saveSetting(TenderAutoSetting tenderAutoSetting);
	
	public void open(String userId,int open);
	
	public TenderAutoSetting getSetting(String userId);
	
	public boolean checkCanLoan(TenderAutoSetting tenderAutoSetting,LoanInfo loanInfo);
	
	public Money checkCanQueue(TenderAutoSetting tenderAutoSetting);
	
	public void refreshAutoQueueRank();
	
	public void startAutoQueue(LoanInfo loanInfo);
	
	public Integer getRankrdById(String userid);
	
	public boolean checkInAutoQueue(String userid);
	
}
